<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/6/17
 * Time: 18:40
 */
namespace app\admin\validate;

use think\Validate;

class Agency extends Validate
{
    protected $rule = [
        'name' => 'require',
        'deposit' => 'require|float',
        'effect_time' => 'require',
        'lose_time' => 'require',
    ];

    protected $message = [
        'name.require' => '机构名称不能为空',
        'deposit.require' => '保证金不能为空',
        'deposit.float'  => '保证金格式不正确',
        'effect_time.require' => '生效时间不能为空',
        'lose_time.require' => '失效时间不能为空',
    ];
}